//获取智能计算平台组织机构-Hook
import { reactive, toRefs, onMounted } from 'vue';
import { TxIvcOrgQueryList } from '/@/api/its/camera.ts'
export function useTxIvcOrg(){
    const state: any = reactive({
        data: []
    })
    const getData = async () => {
        let res: any = await TxIvcOrgQueryList();
        if(res.success){
            state.data = res.data || []
        }
    }
    onMounted(async () => {
        await getData()
    })
    return {
        ...toRefs(state)
    }
}